<!DOCTYPE html>
<html>

<head lang="en">
    <title>游记评论</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/plugins/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/plugins/jquery/jquery.min.js"></script>
    <script src="/js/plugins/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/myStrategyComment.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/jquery-confirm/css/jquery-confirm.css">
    <script src="/js/plugins/jquery-confirm/js/jquery-confirm.js"></script>
    <script src="/js/common.js"></script>
    <script src="/js/plugins/form/jquery.form.js"></script>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css">
    <script>
        $(function () {
            var params = getParams();
            $('#travelId').val(params.travelId);
            $('#submitBtn').click(function () {
                $('#addComment').ajaxSubmit(function (data) {
                    $(document).dialog({
                        type : 'confirm',
                        style: 'default',  // default、ios、android
                        titleText: '提示',
                        content: '评论成功',
                        onClickConfirmBtn:function () {
                            window.location.href = "/travelContent.html?id="+params.travelId;
                        }
                    });

                })
            })

        })
    </script>
</head>

<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col">
            <a href="javascript:window.history.go(-1)">
                <span><i class="fa fa-chevron-left"></i></span>
            </a>

        </div>
        <div class="col">
            <span>游记评价</span>
        </div>
        <div class="col"></div>
    </div>
</div>

<div class="comment">
    <hr/>
    <form method="post" action="/travelContentReplies" id="addComment">
        <input type="hidden" name="travel.id" id="travelId">
        <div class="container tag">
            <p>评价内容</p>
            <textarea name="content" class="form-control" rows="5" placeholder="请填写你对该旅游地的评价"></textarea>
        </div>
    </form>


    <div class="operation">
        <button class="btn" onclick="window.history.go(-1)">放弃评价</button>
        <button type="button" class="btn" id="submitBtn">提交评价</button>
    </div>
</div>


</body>


</html>